package com.igogogo.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.igogogo.entity.Accounts;
import com.igogogo.mapper.AccountsMapper;
import com.igogogo.service.IAccountsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Mr.Chen
 * @since 2018-07-01
 */
@Service
public class AccountsServiceImpl extends ServiceImpl<AccountsMapper, Accounts> implements IAccountsService {

    @Autowired
    private AccountsMapper accountsMapper;

    @Override
    public Page<Accounts> selectPage(Page<Accounts> page) {
        return page.setRecords(accountsMapper.selectPage(page));
    }
}
